<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Demo-02-Vue模板语法</title>
    <script type="text/javascript" src="../JS/vue.js"></script>
</head>
<body>
<div id="root">
    <h4>插值语法</h4>
    <h3>Hello {{ people.name }}!</h3>
    <h4>{{ people.name }} Age Was {{ people.age }} </h4>
    <hr>
    <h4>指令语法</h4>
    <a v-bind:href="school.url">点我去{{ school.name }}学习1</a>
    <a :href="school.url">点我去{{ school.name }}学习2</a>
</div>

<script text="text/javascript">
    const vm = new Vue({
        el: '#root',

        data: {
            people: {
                name: 'Blue',
                age: 19,
            },

            school: {
                name: '尚硅谷',
                url: 'http://www.atguigu.com',
            },
        }

    })
</script>
</body>
</html>